// ActionScript file
package Assets.Controls
{	
		
	 import flash.filters.GlowFilter;
	 
	 import mx.containers.HBox;
	 import mx.containers.TitleWindow;
	 import mx.containers.VBox;
	 import mx.controls.Button;
	 import mx.controls.TextInput;
	
	public class containerStyle
	{	
		public var positionX:Number;
		public var positionY:Number;
		public var obj_width:Number;
		public var obj_height:Number;
		
		private var tempButton:Button;
		private var tempPanel:TitleWindow;
		private var tempHbox:HBox;
		private var tempVbox:VBox;
		private var tempTextinput:TextInput;
		private var hex:Number;
		
		public function containerStyle()
		{
			
		}
		
		
		public function setButton(positionX:Number,positionY:Number,obj_width:Number,obj_height:Number,obj_visibilty:Boolean,obj_toolTip:String,obj_Style:String,label:String,obj_radius:Number):Button
		{
					tempButton=new Button;
					this.positionX=positionX;
					this.positionY=positionY;
					tempButton.x=positionX;
					tempButton.y=positionY;
					tempButton.width=obj_width;
					tempButton.height=obj_height;
					tempButton.visible=obj_visibilty;
					tempButton.toolTip=obj_toolTip;
					tempButton.label=label;
					tempButton.setStyle("cornerRadius",obj_radius);	
					//tempButton.filters=[new GlowFilter(glow)];
					return tempButton;
		}
		
		public function setPanel(positionX:Number,positionY:Number,obj_width:Number,obj_height:Number,obj_visibilty:Boolean,alpha:Number,title:String,obj_layout:String,obj_paddingRight:Number,obj_paddingLeft:Number,obj_headerHeight:Number,obj_paddingBottom:Number):TitleWindow
		{
					tempPanel=new TitleWindow;
					this.positionX=positionX;
					this.positionY=positionY;
					this.obj_height=obj_height;
					this.obj_width=obj_width;
					tempPanel.x=positionX;
					tempPanel.y=positionY;
					tempPanel.width=obj_width;
					tempPanel.height=obj_height;
					tempPanel.visible=obj_visibilty;
					tempPanel.title=title;
					tempPanel.alpha=alpha;
					tempPanel.layout=obj_layout;
					tempPanel.setStyle("borderThicknessLeft",obj_paddingLeft);
					tempPanel.setStyle("borderThicknessBottom",obj_paddingBottom);
					tempPanel.setStyle("borderThicknessRight",obj_paddingRight);
					tempPanel.setStyle("headerHeight",obj_headerHeight);
					return tempPanel;
		}
		
		public function setHbox(positionX:Number,positionY:Number,obj_width:Number,obj_height:Number,obj_visibilty:Boolean):HBox
		{
					tempHbox=new HBox;
					this.positionX=positionX;
					this.positionY=positionY;
					tempHbox.x=positionX;
					tempHbox.y=positionY;
					tempHbox.width=obj_width;
					tempHbox.height=obj_height;
					tempHbox.visible=obj_visibilty;
					return tempHbox;
		}
		
		public function setTextInput(positionX:Number,positionY:Number,obj_width:Number,obj_height:Number,obj_visibilty:Boolean,defaultText:String):TextInput
		{
					tempTextinput=new TextInput;
					this.positionX=positionX;
					this.positionY=positionY;
					tempTextinput.x=positionX;
					tempTextinput.y=positionY;
					tempTextinput.width=obj_width;
					tempTextinput.height=obj_height;
					tempTextinput.visible=obj_visibilty;
					tempTextinput.text=defaultText;
					return tempTextinput;
		}
		
		public function setVbox(positionX:Number,positionY:Number,obj_width:Number,obj_height:Number,obj_visibilty:Boolean):VBox
		{
					tempVbox=new VBox;
					this.positionX=positionX;
					this.positionY=positionY;
					tempVbox.x=positionX;
					tempVbox.y=positionY;
					tempVbox.width=obj_width;
					tempVbox.height=obj_height;
					tempVbox.visible=obj_visibilty;
					return tempVbox;
		}
		
	}
}